<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Zip</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="rarexception.setusingexceptions.html">RarException::setUsingExceptions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intro.zip.html">简介</a></div>
 <div class="up"><a href="refs.compression.html">压缩与归档扩展</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="book.zip" class="book">
 <h1 class="title">Zip</h1>
 
 
 
 
 
 









 








 








 









 
 









<ul class="chunklist chunklist_book"><li><a href="intro.zip.html">简介</a></li><li><a href="zip.setup.html">安装／配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="zip.requirements.html">需求</a></li><li><a href="zip.installation.html">安装</a></li><li><a href="zip.configuration.html">运行时配置</a></li><li><a href="zip.resources.html">资源类型</a></li></ul></li><li><a href="zip.constants.html">预定义常量</a></li><li><a href="zip.examples.html">范例</a></li><li><a href="class.ziparchive.html">ZipArchive</a> — ZipArchive 类<ul class="chunklist chunklist_book chunklist_children"><li><a href="ziparchive.addemptydir.html">ZipArchive::addEmptyDir</a> — Add a new directory</li><li><a href="ziparchive.addfile.html">ZipArchive::addFile</a> — Adds a file to a ZIP archive from the given path</li><li><a href="ziparchive.addfromstring.html">ZipArchive::addFromString</a> — Add a file to a ZIP archive using its contents</li><li><a href="ziparchive.addglob.html">ZipArchive::addGlob</a> — Add files from a directory by glob pattern</li><li><a href="ziparchive.addpattern.html">ZipArchive::addPattern</a> — Add files from a directory by PCRE pattern</li><li><a href="ziparchive.close.html">ZipArchive::close</a> — Close the active archive (opened or newly created)</li><li><a href="ziparchive.deleteindex.html">ZipArchive::deleteIndex</a> — delete an entry in the archive using its index</li><li><a href="ziparchive.deletename.html">ZipArchive::deleteName</a> — delete an entry in the archive using its name</li><li><a href="ziparchive.extractto.html">ZipArchive::extractTo</a> — Extract the archive contents</li><li><a href="ziparchive.getarchivecomment.html">ZipArchive::getArchiveComment</a> — Returns the Zip archive comment</li><li><a href="ziparchive.getcommentindex.html">ZipArchive::getCommentIndex</a> — Returns the comment of an entry using the entry index</li><li><a href="ziparchive.getcommentname.html">ZipArchive::getCommentName</a> — Returns the comment of an entry using the entry name</li><li><a href="ziparchive.getfromindex.html">ZipArchive::getFromIndex</a> — Returns the entry contents using its index</li><li><a href="ziparchive.getfromname.html">ZipArchive::getFromName</a> — Returns the entry contents using its name</li><li><a href="ziparchive.getnameindex.html">ZipArchive::getNameIndex</a> — Returns the name of an entry using its index</li><li><a href="ziparchive.getstatusstring.html">ZipArchive::getStatusString</a> — Returns the status error message, system and/or zip messages</li><li><a href="ziparchive.getstream.html">ZipArchive::getStream</a> — Get a file handler to the entry defined by its name (read only).</li><li><a href="ziparchive.locatename.html">ZipArchive::locateName</a> — Returns the index of the entry in the archive</li><li><a href="ziparchive.open.html">ZipArchive::open</a> — Open a ZIP file archive</li><li><a href="ziparchive.renameindex.html">ZipArchive::renameIndex</a> — Renames an entry defined by its index</li><li><a href="ziparchive.renamename.html">ZipArchive::renameName</a> — Renames an entry defined by its name</li><li><a href="ziparchive.setarchivecomment.html">ZipArchive::setArchiveComment</a> — Set the comment of a ZIP archive</li><li><a href="ziparchive.setcommentindex.html">ZipArchive::setCommentIndex</a> — Set the comment of an entry defined by its index</li><li><a href="ziparchive.setcommentname.html">ZipArchive::setCommentName</a> — Set the comment of an entry defined by its name</li><li><a href="ziparchive.statindex.html">ZipArchive::statIndex</a> — Get the details of an entry defined by its index.</li><li><a href="ziparchive.statname.html">ZipArchive::statName</a> — Get the details of an entry defined by its name.</li><li><a href="ziparchive.unchangeall.html">ZipArchive::unchangeAll</a> — Undo all changes done in the archive</li><li><a href="ziparchive.unchangearchive.html">ZipArchive::unchangeArchive</a> — Revert all global changes done in the archive.</li><li><a href="ziparchive.unchangeindex.html">ZipArchive::unchangeIndex</a> — Revert all changes done to an entry at the given index</li><li><a href="ziparchive.unchangename.html">ZipArchive::unchangeName</a> — Revert all changes done to an entry with the given name.</li></ul></li><li><a href="ref.zip.html">Zip 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.zip-close.html">zip_close</a> — Close a ZIP file archive</li><li><a href="function.zip-entry-close.html">zip_entry_close</a> — Close a directory entry</li><li><a href="function.zip-entry-compressedsize.html">zip_entry_compressedsize</a> — Retrieve the compressed size of a directory entry</li><li><a href="function.zip-entry-compressionmethod.html">zip_entry_compressionmethod</a> — Retrieve the compression method of a directory entry</li><li><a href="function.zip-entry-filesize.html">zip_entry_filesize</a> — Retrieve the actual file size of a directory entry</li><li><a href="function.zip-entry-name.html">zip_entry_name</a> — Retrieve the name of a directory entry</li><li><a href="function.zip-entry-open.html">zip_entry_open</a> — Open a directory entry for reading</li><li><a href="function.zip-entry-read.html">zip_entry_read</a> — Read from an open directory entry</li><li><a href="function.zip-open.html">zip_open</a> — Open a ZIP file archive</li><li><a href="function.zip-read.html">zip_read</a> — Read next entry in a ZIP file archive</li></ul></li></ul></div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="rarexception.setusingexceptions.html">RarException::setUsingExceptions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intro.zip.html">简介</a></div>
 <div class="up"><a href="refs.compression.html">压缩与归档扩展</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
